package com.cmii.sjw.department.control.jsc.mapper;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cmii.sjw.department.control.jsc.model.entity.RoleMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author jfh
 * @Date 2025-04-08 周二 11:26
 * @Version 1.0
 */
@Mapper
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {
    // 批量插入角色菜单关系
    int batchInsertRoleMenus(@Param("roleMenus") List<RoleMenu> roleMenus);

    // 根据角色ID删除关联关系
    int deleteByRoleId(@Param("roleId") Long roleId);
}
